package com.ruoyi.ucar.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.UCarBaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 充值记录对象 t_recharge_record
 * 
 * @author sungangbin
 * @date 2025-05-13
 */
@TableName("t_recharge_record")
@Data
public class TRechargeRecord extends UCarBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 充值记录表主键uuid */
    @Excel(name = "充值记录表主键uuid")
    @TableField("recharge_record_uuid")
    private String rechargeRecordUuid;

    @Excel(name = "充值记录订单号")
    @TableField("recharge_record_order_code")
    private String rechargeRecordOrderCode;

    /** 关联客户UUID-指向客户主表 */
    @Excel(name = "关联客户UUID-指向客户主表")
    @TableField("customer_uuid")
    private String customerUuid;

    /** 充值金额 */
    @Excel(name = "充值金额")
    @TableField("recharge_money")
    private BigDecimal rechargeMoney;

    /** 充值类型-字典 */
    @Excel(name = "充值类型-字典")
    @TableField("recharge_type")
    private String rechargeType;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    @TableField("give_money")
    private BigDecimal giveMoney;

    /** 充值日期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "充值日期时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @TableField("recharge_datetime")
    private LocalDateTime rechargeDatetime;

    /** 状态 */
    @Excel(name = "充值状态")
    @TableField("recharge_status")
    private String rechargeStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    @TableField("created_by")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @TableField("updated_by")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;

    /** 删除标志 */
    @Excel(name = "删除标志")
    @TableField("delete_flag")
    private Long deleteFlag;

    @Excel(name = "微信支付订单号")
    @TableField("transaction_id")
    private String transactionId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rechargeRecordUuid", getRechargeRecordUuid())
            .append("rechargeRecordOrderCode", getRechargeRecordOrderCode())
            .append("customerUuid", getCustomerUuid())
            .append("rechargeMoney", getRechargeMoney())
            .append("rechargeType", getRechargeType())
            .append("giveMoney", getGiveMoney())
            .append("rechargeDatetime", getRechargeDatetime())
            .append("rechargeStatus", getRechargeStatus())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("deleteFlag", getDeleteFlag())
            .append("transactionId", getTransactionId())
            .toString();
    }
}
